Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not cache the classify_relation result #4870

Merged
merged 1 commit into from
Oct 26, 2022
Merged

Conversation

akuzm
Copy link
Member

@akuzm akuzm commented Oct 21, 2022

It depends on the context, not only on the relation id. The same chunk can be expanded both as a child of hypertable and as an independent table.

Fixes #4708

@codecov
Copy link

codecov bot commented Oct 21, 2022

Codecov Report

Merging #4870 (bad5d0c) into main (f055458) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

❗ Current head bad5d0c differs from pull request most recent head 81057fe. Consider uploading reports for the commit 81057fe to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4870      +/-   ##
==========================================
- Coverage   90.97%   90.95%   -0.03%     
==========================================
  Files         225      225              
  Lines       44244    44215      -29     
==========================================
- Hits        40252    40215      -37     
- Misses       3992     4000       +8     
Impacted Files Coverage Δ
src/compat/compat.h 93.87% <ø> (+0.89%) ⬆️
src/planner/planner.h 100.00% <ø> (ø)
src/planner/expand_hypertable.c 93.85% <100.00%> (-0.01%) ⬇️
src/planner/planner.c 95.88% <100.00%> (+0.21%) ⬆️
src/telemetry/telemetry.c 84.04% <100.00%> (ø)
src/bgw/scheduler.c 84.53% <0.00%> (-2.77%) ⬇️
src/bgw/job.c 94.14% <0.00%> (-0.18%) ⬇️
tsl/src/bgw_policy/job.c 88.23% <0.00%> (-0.05%) ⬇️
src/nodes/chunk_insert_state.c 97.65% <0.00%> (-0.01%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 498b8af...81057fe. Read the comment docs.

@akuzm akuzm marked this pull request as ready for review October 25, 2022 17:29
Comment on lines 654 to 656
* If parent reolid is know, the caller can specify it to avoid the costly
* lookup. Otherwise pass InvalidOid.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jnidzwetzki This is the part that should improve planning performance

Comment on lines 654 to 656
* If parent reolid is know, the caller can specify it to avoid the costly
* lookup. Otherwise pass InvalidOid.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* If parent reolid is know, the caller can specify it to avoid the costly
* lookup. Otherwise pass InvalidOid.
* If parent reloid is known, the caller can specify it to avoid the costly
* lookup. Otherwise pass InvalidOid.

It depends on the context, not only on the relation id. The same chunk
can be expanded both as a child of hypertable and as an independent
table.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Assertion hit in add_baserel_cache_entry_for_chunk
3 participants